package com.ccsu.joysport.repository;

import com.ccsu.joysport.entity.Manager;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;


public interface ManagerRepository extends JpaRepository<Manager, String> {
        Optional<Manager> findByAccount(String account);
        boolean existsByAccountAndRole(String studentId, String role);

}


